package com.ctsi.organise.entity;

import java.io.Serializable;

/**
 * @author: zhangjw
 * @Date: 2018/11/15 20:26
 * @Description: 实现organise闭包表
 */
public class OrganiseStruct implements Serializable {
    private static final long serialVersionUID = -4076553114002138697L;
    /**
     * 主键
     */
    private String id;
    /**
     * 父节点
     */
    private String ancestorId;
    /**
     * 子节点
     */
    private String descendantId;
    /**
     * 父节点到子节点的距离
     */
    private int distance;

    public OrganiseStruct() {
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAncestorId() {
        return this.ancestorId;
    }

    public void setAncestorId(String ancestorId) {
        this.ancestorId = ancestorId;
    }

    public String getDescendantId() {
        return this.descendantId;
    }

    public void setDescendantId(String descendantId) {
        this.descendantId = descendantId;
    }

    public int getDistance() {
        return this.distance;
    }

    public void setDistance(int distance) {
        this.distance = distance;
    }
}
